// unittest.cc

// Copyright (C) 2010  traxex

// Author: 	traxex <traxex@yahoo.cn>
// Created: 	05 Aug 2010
// Version: 	1.0
#include <stdio.h>
#include <traxex.h>
void init();
bool unittest();
void performance();

int main(int argc, char *argv[]){
    init();
    bool ok = unittest();
    if(ok) fprintf( stderr, "\e[32m%s\t%s\e[0m\n", STR(UNIT), "passwd");
    else   fprintf( stderr, "\e[31m%s\t%s\e[0m\n", STR(UNIT), "failed");
#ifdef PERFORMANCE
    performance();
#endif
    return ok?0:-1;
}
